package Undo
{
	import mx.core.UIComponent;

	public class UndoEvent
	{
		public var type:String;
		public var target:Object;
		public var currentTarget:Object;
		public var before:Object;
		public var after:Object;
		
		public static const CHANGE:String = "undoableChange";
		
		public function UndoEvent(target:UIComponent, currentTarget:IUndoAdapter, before:Object, after:Object)
		{
			this.type = UndoEvent.CHANGE;
			this.target = target;
			this.currentTarget = currentTarget;
			this.before = before;
			this.after = after;
		}
	}
}